<?php

class Controller_Website extends Controller_Template {
    
    public function before() {
        
//        include_once 'fphp/fb.php';// FirePhp enable
//        $this->firephp = new FirePHP();
//        FB::setEnabled(true);//set false on the real server
    //======== enable error and exception handler ================//
//            $firephp->registerErrorHandler();
//            $firephp->registerExceptionHandler();
            
        parent::before();
        $this->db = Database::instance();
        $this->manager = Model::factory('manager');
        $this->direc = Model::factory('directory');
        session_start();
        $this->template->title = $this->settings['title'];
        $this->template->description = $this->settings['description'];
        $this->template->keywords = $this->settings['keywords'];
        $this->template->facebook = $this->settings['facebook'];
//        $this->addScript('/scripts/jquery/12/jquery.js');
//        $this->addScript('/scripts/jquery/12/jquery-ui.min.js');
//        $this->addScript('/scripts/eva.js');
//        $this->addStyle('/styles/eva.css');

    }
}

?>
